class UserMailer < ActionMailer::Base

  def signup(user)
    setup_email(user)       
    @body['user']  = user
    @recipients   = user.email
  end
  
  def password(user)
    setup_email(user) 
    @body['user']  = user
    @recipients   = user.email
  end
  
  def setup_email(user)
    @subject      = "Benutzerdaten"
    @from         = "Terminkalender <terminkalender@user_mailer_test.de>"
    # @sent_on      = Time.now
    @headers['Content-Type'] = "text/plain; charset=utf-8;"
  end
end